﻿<Window x:Class="WPP_Console.CredWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="CredWindow" Height="153" Width="249" Background="#FF333333">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="themes\WPP_Orange.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid DockPanel.Dock="Top" Margin="0,4,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Border Grid.Column="0" Grid.Row="0" BorderThickness="2,2,2,2" CornerRadius="3,3,0,0" BorderBrush="{DynamicResource WPP_Orange}" Margin="5,0,5,0">
                <WrapPanel Background="{DynamicResource WPP_Orange}">
                    <Label Content="CREDENTIALS" FontSize="12" FontWeight="Bold" Height="24" />
                </WrapPanel>
            </Border>
            <Border Grid.Column="0" Grid.Row="1" Margin="5,-1,5,5" Background="#FFF6871B" BorderThickness="2" CornerRadius="0,0,3,3" BorderBrush="#FFF6871B">
                <Grid Background="{DynamicResource WPP_Background}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Grid.Row="0" Grid.Column="0" Content="Username:" />
                    <Label Grid.Row="1" Grid.Column="0" Content="Password:" />
                    <TextBox Name="txtUsername" Grid.Row="0" Grid.Column="1" Width="Auto" />
                    <TextBox Name="txtPassword" Grid.Row="1" Grid.Column="1" Width="Auto" />
                    <WrapPanel Margin="0,2,0,0" HorizontalAlignment="Center" Grid.Row="3" Grid.ColumnSpan="2">
                        <Button Grid.Row="2" Grid.Column="1" Content="OK" Name="OK" Click="OK_Click" Width="50" />
                        <Button Grid.Row="2" Grid.Column="0" Content="Cancel" Name="Cancel" Click="Cancel_Click" Width="50" />
                    </WrapPanel>                    
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>
